package com.huahua.service;

import com.huahua.entity.User;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    /**
     * 查询
     *
     * @param id 用户id
     * @return User
     */
    public User queryUser(Integer id) {
        return User.builder().id(id).age(20).address("武当山").name("三丰啊").authority(1).build();
    }

    /**
     * 删除
     *
     * @param id 用户id
     * @return int
     */
    public int deleteUser(Integer id) {
        return 1;
    }
}
